On should throw when status code is incorrect