summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-02-21 16:50:19 +0100
committerAlex Legler <alex@a3li.li>2015-02-21 16:50:19 +0100
commit7bc2d5aa2fe90fa41f17a7693aed647870f5f633 (patch)
tree668ddb3e66c9caff27fdaef080b0666762c3ea3c
parentFix syntax error on ruby 2.0 (diff)
downloadfrontend-7bc2d5aa2fe90fa41f17a7693aed647870f5f633.tar.gz
frontend-7bc2d5aa2fe90fa41f17a7693aed647870f5f633.tar.bz2
frontend-7bc2d5aa2fe90fa41f17a7693aed647870f5f633.zip
Internal Server Error is 500, not 503
-rw-r--r--ag-web.rb12
1 files changed, 6 insertions, 6 deletions
diff --git a/ag-web.rb b/ag-web.rb
index 850d1db..d07a18a 100644
--- a/ag-web.rb
+++ b/ag-web.rb
@@ -44,7 +44,7 @@ get '/:list/report/:msgid' do
erb :report, locals: { message: result_data, list: params[:list] }
rescue Exception => e
$stderr.puts e.to_s
- status 503
+ status 500
end
end
@@ -79,7 +79,7 @@ post '/report' do
erb :reportsent, locals: { message: result_data, list: params[:list], msg: msg }
rescue Exception => e
$stderr.puts e.to_s
- status 503
+ status 500
end
end
@@ -95,7 +95,7 @@ get '/:list/' do
erb :listindex, locals: { results: result, list: params[:list], current_monthint: current_monthint }
rescue => e
$stderr.puts e.to_s
- status 503
+ status 500
end
end
@@ -111,7 +111,7 @@ get '/:list/threads/:year-:month/:page?' do
erb :listmonth, locals: { results: result, list: params[:list], current_page: current_page, max_pages: max_pages, mode: :threads }
rescue => e
$stderr.puts e.to_s
- status 503
+ status 500
end
end
@@ -127,7 +127,7 @@ get '/:list/messages/:year-:month/:page?' do
erb :listmonth, locals: { results: result, list: params[:list], current_page: current_page, max_pages: max_pages, mode: :messages }
rescue => e
$stderr.puts e.to_s
- status 503
+ status 500
end
end
@@ -151,7 +151,7 @@ get '/:list/message/:msgid' do
erb :message, locals: { message: result_data, list: params[:list], parent: parent_data, children: child_data }
rescue Exception => e
$stderr.puts e.to_s
- status 503
+ status 500
end
end