This commit is contained in:
2025-10-27 17:39:18 -04:00
commit 31f723bea4
1579 changed files with 642409 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
using System.Net;
namespace Prefab.Shared;
/// <summary>
/// Represents a non-success HTTP response returned by a downstream service.
/// </summary>
public sealed class RemoteProblemException(HttpStatusCode statusCode, string? responseBody)
: Exception($"Remote request failed with status code {(int)statusCode}.")
{
public HttpStatusCode StatusCode { get; } = statusCode;
public string? ResponseBody { get; } = responseBody;
}