Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/spotlight/exhibits_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def create
else
flash.now[:alert] = t('spotlight.exhibits.new_exhibit_form.errors.slug_taken') if @exhibit.errors[:slug].present?

render :new, status: :unprocessable_entity
render :new, status: :unprocessable_content
end
end
# rubocop:enable Metrics/AbcSize
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/spotlight/featured_images_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def create
private

def handle_upload_error(exception)
render json: { error: [exception.message] }, status: :unprocessable_entity
render json: { error: [exception.message] }, status: :unprocessable_content
end

def tilesource
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
}
}

expect(response).to have_http_status(:unprocessable_entity)
expect(response).to have_http_status(:unprocessable_content)
expect(response.parsed_body).to eq({ 'error' => ['File size too large'] })
end
end
Expand Down