Skip to main content

error_response_for

Function error_response_for 

Source
pub fn error_response_for(config: &AppConfig, error: Error) -> Response<Bytes>
Expand description

Build the response for a failed request as config says database errors are answered: compatibility mode and PGRST_DB_ERRORS_VERBATIM both decided here, so a caller holding the configuration cannot leave one out.