diff --git a/lib/brewery_db/middleware/error_handler.rb b/lib/brewery_db/middleware/error_handler.rb
index <HASH>..<HASH> 100644
--- a/lib/brewery_db/middleware/error_handler.rb
+++ b/lib/brewery_db/middleware/error_handler.rb
@@ -6,7 +6,7 @@ module BreweryDB
           when 200
           when 400 then raise BadRequest.new(env[:body].error_message)
           when 404 then raise NotFound.new(env[:body].error_message)
-          else raise Error.new(env[:status])
+          else raise Error.new(env[:status].to_s)
         end
       end
     end
Fix failing error handler specs under Ruby <I>.