Skip to content

Commit

Permalink
Introduced new IHttpException interface
Browse files Browse the repository at this point in the history
  • Loading branch information
abjerner committed Nov 9, 2019
1 parent 82dbdfa commit 3f6d41c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions src/Skybrud.Essentials.Http/Exceptions/IHttpException.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
using System.Net;

namespace Skybrud.Essentials.Http.Exceptions {

/// <summary>
/// Interface representing an error response as the result of a HTTP request.
/// </summary>
interface IHttpException {

/// <summary>
/// Gets a reference to the underlying <see cref="IHttpResponse"/>.
/// </summary>
IHttpResponse Response { get; }

/// <summary>
/// Gets the HTTP status code of the response.
/// </summary>
HttpStatusCode StatusCode { get; }

}

}

0 comments on commit 3f6d41c

Please sign in to comment.