Incorrect status code being displayed