Return correct status codes