pub fn error_response(error: ErrorObject<'_>) -> HttpResponse
Expand description
Create a json response for general errors returned by the called method.
pub fn error_response(error: ErrorObject<'_>) -> HttpResponse
Create a json response for general errors returned by the called method.