Added general http error functions
Added test for retrieving a created user