1useatrium_api::xrpc::http::StatusCode; 2 3/// Utility function for mapping any error into a `500 Internal Server Error`
4/// response.
5pubfninternal_error<E>(err: E)-> (StatusCode,String) 6where 7E: std::error::Error, 8{ 9(StatusCode::INTERNAL_SERVER_ERROR,err.to_string())10}