Add response status codes
Merge branch 'master' into macosx.travis