diff options
Diffstat (limited to 'lib/api.rb')
-rw-r--r-- | lib/api.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/api.rb b/lib/api.rb index 309d254ba3d..e24e0a78f71 100644 --- a/lib/api.rb +++ b/lib/api.rb @@ -5,6 +5,10 @@ module Gitlab VERSION = 'v2' version VERSION, :using => :path + rescue_from ActiveRecord::RecordNotFound do + rack_response({'message' => '404 Not found'}.to_json, 404) + end + format :json error_format :json helpers APIHelpers |