You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by "Hank Beatty (JIRA)" <ji...@apache.org> on 2017/08/10 12:16:00 UTC

[jira] [Commented] (TC-59) Traffic Ops Client should return HTTP body on Error response

    [ https://issues.apache.org/jira/browse/TC-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16121526#comment-16121526 ] 

Hank Beatty commented on TC-59:
-------------------------------

[~neuman] [~hbeatty] Has this been resolved? If not are we going to try to fix in 2.1?

> Traffic Ops Client should return HTTP body on Error response
> ------------------------------------------------------------
>
>                 Key: TC-59
>                 URL: https://issues.apache.org/jira/browse/TC-59
>             Project: Traffic Control
>          Issue Type: Bug
>          Components: Traffic Ops Client , Traffic Portal
>            Reporter: David Neuman
>              Labels: error_response
>
> Currently, if the Traffic Ops client gets back an Error response from TO, the calling method is returned a struct containing the StatusCode and Status (https://github.com/apache/incubator-trafficcontrol/blob/master/traffic_ops/client/traffic_ops.go#L180).  Sometimes there is useful information in the body of the response as well - such as why an error occured -- so it would be useful to return the body to the calling method as well.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)