Disabling error reporting from Sinatra to a browser To disable error reporting to a browser add next line to your application: disable :show_exceptions