mirror of
https://github.com/nsnail/Ocelot.git
synced 2025-06-19 21:48:15 +08:00
http error code tests and docs
This commit is contained in:
@ -3,7 +3,7 @@ using System;
|
||||
|
||||
namespace Ocelot.Requester
|
||||
{
|
||||
class ConnectionToDownstreamServiceError : Error
|
||||
public class ConnectionToDownstreamServiceError : Error
|
||||
{
|
||||
public ConnectionToDownstreamServiceError(Exception exception)
|
||||
: base($"Error connecting to downstream service, exception: {exception}", OcelotErrorCode.ConnectionToDownstreamServiceError)
|
||||
|
@ -5,7 +5,6 @@ namespace Ocelot.Requester
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Net.Http;
|
||||
using System.Net.Sockets;
|
||||
|
||||
public class HttpExeptionToErrorMapper : IExceptionToErrorMapper
|
||||
{
|
||||
|
@ -1,8 +1,9 @@
|
||||
using Ocelot.Errors;
|
||||
using System.Collections.Generic;
|
||||
namespace Ocelot.Responder
|
||||
{
|
||||
using System.Net;
|
||||
using Ocelot.Errors;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Ocelot.Responder
|
||||
{
|
||||
/// <summary>
|
||||
/// Map a list OceoltErrors to a single appropriate HTTP status code
|
||||
/// </summary>
|
||||
|
Reference in New Issue
Block a user