Create profile if it doesn't exist.
Remove extra }
s/400/404/
s/200/201/
Use swift.js instead of mock.js