return response if status code is set.