public function display(Exception $exception, $code)
    {
        $content = $this->whoops()->handleException($exception);
        if( $this->request->wantsJson() ) {
            return Response::create( $content, $code )->header( 'Content-Type', 'application/json');
        } else {
            return Response::create( $content, $code);
        }
    }