Changed response status codes on failures