Add explanation to the different status codes.
Fix so that correct status codes are returned.