2using System.Diagnostics.CodeAnalysis;
44 ErrorMessage = errorMessage ??
throw new ArgumentNullException(nameof(errorMessage));
Represents an error message returned by the server.
virtual bool Success
Checks if the AuthorityResponse was successful.
ErrorMessageResponse? ErrorMessage
Gets the associated ErrorMessageResponse. Must only be used if Success is false.
HttpFailureResponse? FailureResponse
The HttpFailureResponse.
AuthorityResponse(ErrorMessageResponse errorMessage, HttpFailureResponse failureResponse)
Initializes a new instance of the AuthorityResponse class.
AuthorityResponse()
Initializes a new instance of the AuthorityResponse class.
HttpFailureResponse
Indicates the type of HTTP status code an failing AuthorityResponse should generate.