/**
  * Get the proper failed validation response for the request.
  *
  * @param  array  $errors
  * @return \Symfony\Component\HttpFoundation\Response
  */
 public function response(array $errors)
 {
     if (!$this->respectTheRobot) {
         $this->ban = Ban::addRobotBan($this->board);
         return $this->forbiddenResponse();
     }
     $redirectURL = $this->getRedirectUrl();
     if ($this->wantsJson()) {
         return $this->apiResponse(['errors' => $errors]);
     }
     return redirect($redirectURL)->withInput($this->except($this->dontFlash))->withErrors($errors, $this->errorBag);
 }