/v1/repo-info returns 200 with no content and causes JSON parsing to fail
/v1/repo-info?repo=phuslu%2Fgoproxy
returns 200 status with no content which causes the JSON parsing on the frontend to fail.
We should return a 204 status,
204 No Content
The server successfully processed the request and is not returning any content.
https://en.wikipedia.org/wiki/List_of_HTTP_status_codes#2xx_Success
https://sentry.gitlap.com/gitlab/frontend/issues/192532/
Error: SyntaxError: Unexpected end of JSON input
at d (/_s/9658c54/js/vendor.js:1:281616)
at Object.error (/_s/9658c54/js/vendor.js:1:283072)
at h (/_s/9658c54/js/vendor.js:1:71564)
at Object.fireWith [as rejectWith] (/_s/9658c54/js/vendor.js:1:72371)
at u (/_s/9658c54/js/vendor.js:1:119113)
...
(2 additional frame(s) were not displayed)