diff --git a/server/profiles.js b/server/profiles.js index 2fe104f..e4d9ec4 100644 --- a/server/profiles.js +++ b/server/profiles.js @@ -82,7 +82,7 @@ function profileRequestInner(connection, req, res, fields) { if (results.length === 1) { return profileCreateInner(connection, req, res, fields); } else { - res.status(404).write('Profile not found'); + res.status(400).write('Profile not found'); res.end(); } }); diff --git a/src/components/pages/profile.jsx b/src/components/pages/profile.jsx index 068196e..61d14c8 100644 --- a/src/components/pages/profile.jsx +++ b/src/components/pages/profile.jsx @@ -121,9 +121,6 @@ class Profile extends React.Component { else if (xhr.status === 400) { this.setWarning(xhr.responseText); } - else if (xhr.status === 404) { - this.props.history.push('/404'); - } } }