You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@thrift.apache.org by RobberPhex <gi...@git.apache.org> on 2017/01/19 09:22:48 UTC

[GitHub] thrift issue #1086: THRIFT-3926 Emit an error for bad http status code

Github user RobberPhex commented on the issue:

    https://github.com/apache/thrift/pull/1086
  
    status code not equal 200 doesn't means it's a `TApplicationException`.
    
    * When status code is 301/3xx, should thrift client follow the redirect?
    * In some server implements, server return Exception with 4xx, Exception contains the message "Access Denied"
    
    Httpcode is expression of server status, it can be used for debugging, for logging, not just a part of rpc.
    
    If someone want client process this error, return Exception when http code is not right, and client can parse and raise this exception.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---