Permalink
Browse files

update status codes

  • Loading branch information...
1 parent 0f488a5 commit acb9137efb3c4e1293433e9825934adcdad4e3bf @steven-s steven-s committed Apr 15, 2012
Showing with 5 additions and 5 deletions.
  1. +5 −5 api.rb
View
10 api.rb
@@ -225,7 +225,7 @@
reply = Array.new
if restaurants.empty?
- status 404
+ halt 404
else
restaurants.each do |restaurant|
reply_entry = Hash.new
@@ -252,7 +252,7 @@
reply = Array.new
if restaurants.empty?
- status 404
+ halt 404
else
restaurants.each do |restaurant|
reply_entry = Hash.new
@@ -279,7 +279,7 @@
reply = Array.new
if restaurants.empty?
- status 404
+ halt 404
else
restaurants.each do |restaurant|
reply_entry = Hash.new
@@ -320,7 +320,7 @@
reply = Array.new
if restaurants.empty?
- status 404
+ halt 404
else
restaurants.each do |restaurant|
reply_entry = Hash.new
@@ -360,7 +360,7 @@
reply = Array.new
if restaurants.empty?
- status 404
+ halt 404
else
restaurants.each do |restaurant|
reply_entry = Hash.new

0 comments on commit acb9137

Please sign in to comment.