Add error handling layer to request construction

Add error handling layer to request construction. Exceptions in request construction now correctly set the error status on the response.