CI testing a request is successful.

`curl` on some distributions can return always a successful exit code,
even for 4xx HTTP responses which prompted a change to test the HTTP
status of the response directly.