All right.
And up next, let's set up a few more custom error classes, which we're going to use throughout the
project.
And effectively the idea is exactly the same.
For example, this is going to be for bad requests.
So 400, then we have one for 401 the unauthorized, and then we also have one for forbidden.
Now if you just want to copy and paste, that's totally an option.
But in my case, I will set up everything from scratch, sort of.
I mean, I'll still copy and paste a little bit, but not everything from Readme.
So first one is going to be the bad request one.
Again, we just need to come up with the name bad request error and I want to use the same.
Name over here.
And as far as the status code, we are looking for bad requests.
So that's the 400.
Then let's create one for unauthenticated.
You know, let me just type in both places.
And as far as the error, we're looking for 401.
We're looking for unauthorized.
And then lastly.
We have actual unauthorized and that is going to be forbidden.
So again, I want to select in these two places.
And we want to change here to forbidden, which is going to be 403.
Let's save it.
And with this in place, we can start working on the validation layer.