send correct status codes