diff --git a/src/Tgstation.Server.Host/Authority/Core/AuthorityBase.cs b/src/Tgstation.Server.Host/Authority/Core/AuthorityBase.cs index f0e39151a3..0ea01a89da 100644 --- a/src/Tgstation.Server.Host/Authority/Core/AuthorityBase.cs +++ b/src/Tgstation.Server.Host/Authority/Core/AuthorityBase.cs @@ -60,7 +60,7 @@ namespace Tgstation.Server.Host.Authority.Core /// A new, errored . protected static AuthorityResponse Gone() => new( - new ErrorMessageResponse(), + new ErrorMessageResponse(ErrorCode.ResourceNotPresent), HttpFailureResponse.Gone); /// @@ -80,7 +80,7 @@ namespace Tgstation.Server.Host.Authority.Core /// A new, errored . protected static AuthorityResponse NotFound() => new( - new ErrorMessageResponse(), + new ErrorMessageResponse(ErrorCode.ResourceNeverPresent), HttpFailureResponse.NotFound); /// diff --git a/src/Tgstation.Server.Host/Authority/Core/RestAuthorityInvoker{TAuthority}.cs b/src/Tgstation.Server.Host/Authority/Core/RestAuthorityInvoker{TAuthority}.cs index 91118a5586..52532c2f0e 100644 --- a/src/Tgstation.Server.Host/Authority/Core/RestAuthorityInvoker{TAuthority}.cs +++ b/src/Tgstation.Server.Host/Authority/Core/RestAuthorityInvoker{TAuthority}.cs @@ -55,7 +55,7 @@ namespace Tgstation.Server.Host.Authority.Core return failureResponse switch { HttpFailureResponse.BadRequest => controller.BadRequest(errorMessage), - HttpFailureResponse.Unauthorized => controller.Unauthorized(errorMessage), + HttpFailureResponse.Unauthorized => controller.Unauthorized(), HttpFailureResponse.Forbidden => controller.Forbid(), HttpFailureResponse.NotFound => controller.NotFound(errorMessage), HttpFailureResponse.NotAcceptable => controller.StatusCode(HttpStatusCode.NotAcceptable, errorMessage),