BloomRpcServerResponse.serverError constructor
Factory for an internal server error response (status 500).
Implementation
factory BloomRpcServerResponse.serverError(String message,
{Map<String, String>? headers}) =>
BloomRpcServerResponse(
statusCode: 500,
body: {'error': message, 'statusCode': 500},
headers: headers ??
const {'content-type': 'application/json; charset=utf-8'},
);