In Connection.cs:
private void ThrowIfRequestFailed(IRestResponse response)
{
switch (response.StatusCode)
{
case HttpStatusCode.BadRequest:
case HttpStatusCode.Forbidden:
case HttpStatusCode.NotAcceptable:
case HttpStatusCode.Unauthorized:
case HttpStatusCode.UnsupportedMediaType:
throw new RequestFailedException(response);
case HttpStatusCode.NotFound:
throw new RequestNotFoundException(response);
}
}
If you get a 500 from YouTrack (BadGateway, GatewayTimeout, HttpVersionNotSupported, InternalServerError, NotImplemented, ServiceUnavailable, etc) this will not count as a fail now?
Maybe there should be a default: in the switch case or more statuscodes added to it.
... Or maybe it works already and I just suck!
In Connection.cs:
If you get a 500 from YouTrack (BadGateway, GatewayTimeout, HttpVersionNotSupported, InternalServerError, NotImplemented, ServiceUnavailable, etc) this will not count as a fail now?
Maybe there should be a default: in the switch case or more statuscodes added to it.
... Or maybe it works already and I just suck!