Feature/http responses in and out

setting up to api to work correctly with the right http codes