TypedRest maps non-success HTTP Status (4xx and 5xx) to exceptions. The following mappings are applied by default:

HTTP Status Code .NET Exception Type
400 Bad Request InvalidDataException
401 Unauthorized AuthenticationException
403 Forbidden UnauthorizedAccessException
404 NotFound or 410 Gone KeyNotFoundException
408 Request Timeout TimeoutException
409 Conflict InvalidOperationException
412 Precondition Failed InvalidOperationException
416 Range Not Satisfiable InvalidOperationException
other HttpRequestException

This can be customized by providing your own implementation of the error handler interface.