Update reshape.c

Added return codes with thanks to Mishkin to finding this.