Added proper HTTP status codes.