public static HttpErrorMessage CreateUnauthorized(IHostingEnvironment env, string msg) { return(HttpErrorMessage.Create(env, HttpStatusCode.Forbidden, Urls.UnauthorizedUrl, msg)); }
public static HttpErrorMessage CreateError(IHostingEnvironment env, string msg) { return(HttpErrorMessage.Create(env, HttpStatusCode.InternalServerError, Urls.Error, msg)); }