Merge branch '19070-update-workflow-deps' refs #19070
[arvados.git] / sdk / go / arvados / error.go
index 9a04855784a76eee88bb4119b1483fa3505b67f2..5329a5146ad75e616446be87c6755a61176d7b7f 100644 (file)
@@ -31,6 +31,10 @@ func (e TransactionError) Error() (s string) {
        return
 }
 
+func (e TransactionError) HTTPStatus() int {
+       return e.StatusCode
+}
+
 func newTransactionError(req *http.Request, resp *http.Response, buf []byte) *TransactionError {
        var e TransactionError
        if json.Unmarshal(buf, &e) != nil {