When implementing IntoResponse for our (currently named) CustomError we want certain variants of the DatabaseError or PgDatabaseError to map to certain status codes.
For example:
Something that violates the non unique constraint should return a StatusCode::BAD_REQUEST
When implementing
IntoResponse
for our (currently named)CustomError
we want certain variants of the DatabaseError or PgDatabaseError to map to certain status codes.For example:
StatusCode::BAD_REQUEST