fixing http status codes
adding support for GET method