Update tests to use http error codes
Remove extraneous try/catch, require_result