http status codes

HTTP status code for:
- a successful PUT request should be 200(OK). 
- a successful registration should be 201(CREATED). 
- a login/register request with missing parameters should be 400(BAD_REQUEST).