Remora / Remora.Results

A simple, versatile algebraic data type for C#.
GNU Lesser General Public License v3.0
15 stars 5 forks source link

Create HttpError type #2

Closed Foxtrek64 closed 2 years ago

Foxtrek64 commented 3 years ago

Generic type for working with HttpClient errors.

Proposed API:

public sealed record HttpError(int ErrorCode, string Message) : base(message);
Tylertron1998 commented 3 years ago

hmm, imo HttpError is a bit too specific to be included. Remora.Results fits better as a base library for creating errors, then a library of errors (if that's even the right wording). That's something that would be easy to add to your own project.

Foxtrek64 commented 2 years ago

This was implemented in Remora.Rest, a more suitable library for this type.