clean code
refactored http status code