Fixing HTTP status code
Adding migration for next version
Api changes on the master