Sets response status code on the response