/**
  *
  * Builds a Response for PayloadStatus::NOT_VALID.
  *
  */
 protected function notValid()
 {
     $this->response = $this->response->withStatus(422);
     $this->jsonBody(['input' => $this->payload->getInput(), 'output' => $this->payload->getOutput(), 'messages' => $this->payload->getMessages()]);
 }