add status code to response