[copr] master: Make the api return 500 status code when something goes wrong. (802c4e8)