Seen while testing GitLab 11.10 RC5 with a relative URL path (/gitlab):
The URL is returning a 404 because the API endpoint is missing /gitlab:
/gitlab