Response validation by status code. Closes #1864