#603 return 502 when request cannot be completed

This commit is contained in:
jlukawska
2019-11-22 08:01:02 +01:00
parent f15e3a9acf
commit f35a07a3da
4 changed files with 36 additions and 4 deletions

View File

@ -47,9 +47,9 @@ namespace Ocelot.UnitTests.Responder
[Theory]
[InlineData(OcelotErrorCode.UnableToCompleteRequestError)]
public void should_return_internal_server_error(OcelotErrorCode errorCode)
public void should_return_bad_gateway_error(OcelotErrorCode errorCode)
{
ShouldMapErrorToStatusCode(errorCode, HttpStatusCode.InternalServerError);
ShouldMapErrorToStatusCode(errorCode, HttpStatusCode.BadGateway);
}
[Theory]