http error code tests and docs

This commit is contained in:
TomPallister
2020-04-11 18:46:19 +01:00
parent 3dfcff822b
commit cdbd8e85d3
6 changed files with 29 additions and 6 deletions

View File

@ -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)

View File

@ -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
{

View File

@ -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>