private static void SetResponseStatusCode(HttpContext context, ApiExceptionBase exception) { context.Response.StatusCode = (int)exception.HttpCode; }
public HeroesProblemDetails(ApiExceptionBase apiExceptionBase) { Detail = apiExceptionBase.Message; Status = (int)apiExceptionBase.Code; Title = apiExceptionBase.Title; }
private static ErrorDetail CreateErrorDetail(ApiExceptionBase exception, bool detailedException) { return(new ErrorDetail(exception, exception.Code, detailedException)); }