IBM / python-sdk-core

The python-sdk-core repository contains core functionality required by Python code generated by the IBM OpenAPI SDK Generator.
Apache License 2.0
20 stars 27 forks source link

Get error status phrase from status code #64

Closed rmkeezer closed 4 years ago

rmkeezer commented 4 years ago

ref: https://github.ibm.com/arf/planning-sdk-squad/issues/1600

In Python3 we can now get the phrase of the status code using http.HTTPStatus

codecov[bot] commented 4 years ago

Codecov Report

Merging #64 into master will increase coverage by 0.00%. The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #64   +/-   ##
=======================================
  Coverage   97.88%   97.89%           
=======================================
  Files          17       17           
  Lines         616      618    +2     
=======================================
+ Hits          603      605    +2     
  Misses         13       13           
Impacted Files Coverage Δ
ibm_cloud_sdk_core/api_exception.py 100.00% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update 9e6090d...ca17407. Read the comment docs.