Merge pull request #10009 from nextcloud/techdebt/noid/replace-headers-with-http_response_code-calls Replace hard coded HTTP status codes with proper calls to http_response_code