Argument 1 must be an instance of integer, integer given
Send proper http response code with errors