Proper HTTP status code support for /api/v4/allowed API endpoint
As part of https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/21034/, the /api/v4/allowed
API endpoint now properly returns an accurate HTTP status code in the event of success (200), user/key not authorised (401) or project not found (or user/key does not have access) (404).
This change explicitly handles the new codes.
Edited by Ash McKenzie