Skip to content

Commit 755dfb8

Browse files
authored
Merge pull request #663 from vrdel/devel
HTTP 500 is more appropriate
2 parents 4e3aeac + 9e0968e commit 755dfb8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

poem/Poem/api/internal_views/metrics.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def get(self, request, name=None):
5555

5656
except requests.RequestException as exc:
5757
return error_response(
58-
status_code=status.HTTP_400_BAD_REQUEST,
58+
status_code=status.HTTP_500_INTERNAL_SERVER_ERROR,
5959
detail='Error fetching metric profile data from WEB-API'
6060
)
6161

0 commit comments

Comments
 (0)