diff options
Diffstat (limited to 'src/DotNetOpenAuth/OpenId/Messages/DirectErrorResponse.cs')
-rw-r--r-- | src/DotNetOpenAuth/OpenId/Messages/DirectErrorResponse.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/DotNetOpenAuth/OpenId/Messages/DirectErrorResponse.cs b/src/DotNetOpenAuth/OpenId/Messages/DirectErrorResponse.cs index a4c4d3e..ed272d3 100644 --- a/src/DotNetOpenAuth/OpenId/Messages/DirectErrorResponse.cs +++ b/src/DotNetOpenAuth/OpenId/Messages/DirectErrorResponse.cs @@ -14,7 +14,7 @@ namespace DotNetOpenAuth.OpenId.Messages { /// This message must be sent with an HTTP status code of 400. /// This class satisfies OpenID 2.0 section 5.1.2.2. /// </remarks> - internal class DirectErrorResponse : DirectResponseBase { + internal class DirectErrorResponse : DirectResponseBase, IHttpDirectResponse { /// <summary> /// Initializes a new instance of the <see cref="DirectErrorResponse"/> class. /// </summary> @@ -23,6 +23,18 @@ namespace DotNetOpenAuth.OpenId.Messages { : base(originatingRequest) { } + #region IHttpDirectResponse Members + + /// <summary> + /// Gets the HTTP status code that the direct respones should be sent with. + /// </summary> + /// <value><see cref="System.Net.HttpStatusCode.BadRequest"/></value> + public System.Net.HttpStatusCode HttpStatusCode { + get { return System.Net.HttpStatusCode.BadRequest; } + } + + #endregion + /// <summary> /// Gets or sets a human-readable message indicating why the request failed. /// </summary> |