Set title on unacceptable merch type error
This commit is contained in:
parent
6b07ec7d07
commit
964ab26007
@ -139,6 +139,7 @@ pub async fn create(
|
||||
{
|
||||
return Err(reject::custom(
|
||||
HttpApiProblem::with_title_and_type_from_status(StatusCode::BAD_REQUEST)
|
||||
.set_title("Unacceptable Merchandise Type")
|
||||
.set_detail("Shop does not accept that kind of merchandise"),
|
||||
));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user