do not return an error on status codes not equal 2xx
fix tests for proper return values