suutari / drf-jwt-2fa

Django Rest Framework JWT 2FA
https://pypi.python.org/pypi/drf-jwt-2fa/
MIT License
20 stars 10 forks source link

Change HTTP status codes of failure responses #2

Closed suutari closed 6 years ago

suutari commented 6 years ago

Make it easier to distinguish different error conditions from each other by using more appropriate HTTP status codes in the error responses.

codecov[bot] commented 6 years ago

Codecov Report

Merging #2 into master will not change coverage. The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff          @@
##           master     #2   +/-   ##
=====================================
  Coverage     100%   100%           
=====================================
  Files          15     16    +1     
  Lines         533    543   +10     
  Branches       13     13           
=====================================
+ Hits          533    543   +10
Impacted Files Coverage Δ
drf_jwt_2fa/utils.py 100% <100%> (ø) :arrow_up:
drf_jwt_2fa/tests/test_throttling.py 100% <100%> (ø) :arrow_up:
drf_jwt_2fa/exceptions.py 100% <100%> (ø)
drf_jwt_2fa/tests/test_token_manager.py 100% <100%> (ø) :arrow_up:
drf_jwt_2fa/tests/test_endpoints.py 100% <100%> (ø) :arrow_up:
drf_jwt_2fa/token_manager.py 100% <100%> (ø) :arrow_up:
drf_jwt_2fa/serializers.py 100% <100%> (ø) :arrow_up:

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 0e1e344...945af4c. Read the comment docs.