From 60df748e6b1d47ae7f311e77c90fd3d6930815da Mon Sep 17 00:00:00 2001 From: Andrew Tomaka Date: Mon, 12 Oct 2015 16:44:28 -0400 Subject: [PATCH] Use created response --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 60cfbeb..afe2241 100644 --- a/app.rb +++ b/app.rb @@ -20,7 +20,7 @@ post '/jokes' do @joke = Joke.new(params[:joke]) if @joke.save - status 204 + status 201 else status 422 end