try 
```ruby
status = Photo.delete_all(["id in (?)", params[:ids]]) ? :ok : :anystatusoferror
render  nothing: true, status: status
```

[:anystatusoferror](http://futureshock-ed.com/2011/03/04/http-status-code-symbols-for-rails/)