github :: MockGithubAPI :: response_code
See response_is_error
.
# Status code of a simulated error
#
# See `response_is_error`.
fun response_code(path: String): String do
assert response_is_error(path)
return test_responses[path].split("_").last
end
lib/github/tests/test_api.nit:117,2--123,4