public InternalServerErrorObjectResult Timeout(int status = StatusCodes.Status504GatewayTimeout, params string[] messages) { var result = ApiExceptionResult.GatewayTimeout(messages, status); return(new InternalServerErrorObjectResult(result, result.Status)); }
public InternalServerErrorObjectResult ServerError(params string[] messages) { var result = ApiExceptionResult.GatewayTimeout(messages); return(new InternalServerErrorObjectResult(result)); }
public InternalServerErrorObjectResult Timeout(object messages) { var result = ApiExceptionResult.GatewayTimeout(messages); return(new InternalServerErrorObjectResult(result, result.Status)); }